﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Graphics;

namespace TileEngine.liquids
{
    class Oil:Iliquid
    {
        int spriteFrame = 0;
        float particle = 10;
        public double getLightAbsorption()
        {
            return 0.3;
        }
        public float getParticle()
        {
            return particle;
        }
        public void setParticle(float n)
        {
            this.particle = n;
        }
        public void addParticle(float n)
        {
            this.particle += n;
        }
        public void draw(SpriteBatch spriteBatch, Rectangle destinationRectangle,Color tint)
        {
            spriteBatch.Draw(Textures.liquid[spriteFrame/20], destinationRectangle, new Color(50,50,50,220));
            spriteFrame = (spriteFrame + 2) % 60;
        }

    }
}
